﻿
using Prism.Ioc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManagementToolClient.BaseViewModels
{
    public class BaseViewModel : ViewBindModelBase
    {
        public List<int> Limits { get; set; } = new List<int>()
        {
            10,15,20
        };

        private int _SumPageCount = 0;

        public int SumPageCount
        {
            get
            {
                return _SumPageCount;
            }
            set
            {
                SetProperty(ref _SumPageCount, value);
            }
        }

        private int _PageCount = 1;

        public int PageCount
        {
            get
            {
                return _PageCount;
            }
            set
            {
                SetProperty(ref _PageCount, value);
            }
        }

        private int _PageItemsCount;

        public int PageItemsCount
        {
            get
            {
                return _PageItemsCount;
            }
            set
            {
                SetProperty(ref _PageItemsCount, value);
            }
        }

        public BaseViewModel(IContainerExtension container) : base(container)
        {
        }

        protected void InitInfo()
        {
            PageItemsCount = Limits.FirstOrDefault();
        }

        protected void InitDate()
        {
            InitInfo();
            PageItemsCount = Limits.FirstOrDefault();
           
        }

      
    }
}
